package cn.com.nes.site.service.logs;

import cn.com.nes.mybatis.agent.logs.entity.ImportLogs;
import cn.com.nes.site.entity.PageData;
import cn.com.nes.site.entity.vo.project.ImportGovernmentalCustomerArchiveVO;
import cn.com.nes.site.entity.vo.workOrder.BatchDistributeWorkOrderInstallVO;
import cn.com.nes.site.service.logs.bo.ImportMainLogPageBO;
import cn.com.nes.site.service.logs.dto.ImportMainLogDTO;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;


public interface ImportLogsService extends IService<ImportLogs> {

    //保存主表信息
    public void insertWorkOrderData(BatchDistributeWorkOrderInstallVO vo, List<String> customerIdList);


    void insertCustomerInfoData(ImportGovernmentalCustomerArchiveVO childVo, Integer number);


    public void updateCustomerInfoData(String projectId, String operateTimeStamp);


    public PageData queryLogsData(ImportLogs importLogs);


    Page<ImportMainLogDTO> importMainLogPage(ImportMainLogPageBO bo) throws Exception;

    /**
     * 导入日志主表增加失败条数
     */
    void increaseFailCount(ImportGovernmentalCustomerArchiveVO childVo, int failCount);
}
